<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Buenas Practicas</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">

		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/spacelab.css" %}">
		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/responsive.css" %}">
		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/misestilos.css" %}">
		{% load staticfiles %} <link rel="stylesheet" href="{% static "css/datepicker.css" %}">
		
        {% load staticfiles %}
        <link rel="stylesheet" href="{% static "css/menu_jquery.css" %}">
	</head>

	<body>

		{% include "topmenu.html" %} <!-- Top menu -->
		<div class="container">
			<div class="row-fluid">
				{% include "sidebar.html" %} <!-- Side bar -->
				<!-- Formulario de Buenas Practicas -->
				<div class="span9">
					<div class="page-header">
						<h2>Listado de Formularios de Buenas Prácticas de {{universidad.nombre}}</h2>
					</div>
					<div class="span9">
						{%if buenaspracticasFC or buenaspracticasTC or buenaspracticasCS %}
							<table border="5" ALIGN="CENTER" WIDTH="800px" CELLPADDING="8">
								<tr ALIGN="CENTER"><th WIDTH="80%" colspan="1">Formación continua</th>
								<th WIDTH="20%"><a class="btn btn-primary" onclick="toggle_visibility_name('fc')" id="fc">Mostrar</a></th></tr>
								{%if buenaspracticasFC %}	
									<tr ALIGN="CENTER" name="fc" style="display: none;"><th WIDTH="80%">Nombre de la Iniciativa</th>
									<th WIDTH="20%">Fecha de inicio</th></tr>
									{% for bp in buenaspracticasFC %}
										<tr ALIGN="CENTER" name="fc" style="display: none;"><td><a href="/plataforma/buenaspracticas/muestra_formulario/{{bp.id}}">{{bp.iniciativa | safe}}</a></td>
										<td>{{bp.fecha_desde | safe}}</td></tr>
									{%endfor%}
								{% else%}
									<tr ALIGN="CENTER" name="fc" style="display: none;"><td WIDTH="100%" colspan="2">No exiten formularios cargados</td></tr>
								{%endif%}
								<tr ALIGN="CENTER"><th WIDTH="80%" colspan="1">Transferencia de Conocimiento</th>
								<th WIDTH="20%"><a class="btn btn-primary" onclick="toggle_visibility_name('tc')" id="tc">Mostrar</a></th></tr>
								{%if buenaspracticasTC %}
									<tr ALIGN="CENTER" name="tc" style="display: none;"><th WIDTH="80%">Nombre de la Iniciativa</th>
									<th WIDTH="20%">Fecha de inicio</th></tr>
									{% for bp in buenaspracticasTC %}
										<tr ALIGN="CENTER" name="tc" style="display: none;"><td><a href="/plataforma/buenaspracticas/muestra_formulario/{{bp.id}}">{{bp.iniciativa | safe}}</a></td>
										<td>{{bp.fecha_desde | safe}}</td></tr>
									{%endfor%}
								{% else%}
									<tr ALIGN="CENTER" name="tc" style="display: none;"><td WIDTH="100%" colspan="2">No exiten formularios cargados</td></tr>
								{%endif%}
								<tr ALIGN="CENTER"><th WIDTH="80%" colspan="1">Compromiso Social</th>
								<th WIDTH="20%"><a class="btn btn-primary" onclick="toggle_visibility_name('cs')" id="cs">Mostrar</a></th></tr>
								{%if buenaspracticasCS %}
									<tr ALIGN="CENTER" name="cs" style="display: none;"><th WIDTH="80%">Nombre de la Iniciativa</th>
									<th WIDTH="20%">Fecha de inicio</th></tr>
									{% for bp in buenaspracticasCS %}
										<tr ALIGN="CENTER" name="cs" style="display: none;"><td><a href="/plataforma/buenaspracticas/muestra_formulario/{{bp.id}}">{{bp.iniciativa | safe}}</a></td>
										<td>{{bp.fecha_desde | safe}}</td>></tr>
									{%endfor%}
								{% else%}
									<tr ALIGN="CENTER" name="cs" style="display: none;"><td WIDTH="100%" colspan="2">No exiten formularios cargados</td></tr>
								{%endif%}
							</table>
						{% else%}
							<h3>No exiten formularios cargados</h3>
						{%endif%}
					</div>
				</div><!-- Fin span9-->
			</div>

			<!-- Fin row -->
			{% include "footer.html" %} <!-- Footer -->
		</div>
		<!-- /container -->
		<!-- JS files -->
		{% load staticfiles %}
		<script type="text/javascript" src="{% static "js/jquery-1.10.2.min.js" %}"></script>
		{% load staticfiles %}
		<script type="text/javascript" src="{% static "js/bootstrap.js" %}"></script>
		{% load staticfiles %}
		<script type="text/javascript" src="{% static "js/toggle.js" %}"></script>
                {% load staticfiles %} <script type="text/javascript" src="{% static "js/menu_jquery.js" %}"></script>
		
		<!-- {% load staticfiles %} <script type="text/javascript" src="{% static "js/parsley.js" %}"></script> -->
	</body>
</html>
